import request from '@/utils/request'

// 查询危废收运列表
export function listWasteCollect(query) {
    return request({
        url: '/business/wasteCollect/list',
        method: 'get',
        params: query
    })
}

// 查询危废收运详细
export function getWasteCollect(wasteCollectId) {
    return request({
        url: '/business/wasteCollect/' + wasteCollectId,
        method: 'get'
    })
}

// 新增危废收运
export function addWasteCollect(data) {
    return request({
        url: '/business/wasteCollect',
        method: 'post',
        data: data
    })
}

// 修改危废收运
export function updateWasteCollect(data) {
    return request({
        url: '/business/wasteCollect',
        method: 'put',
        data: data
    })
}

// 删除危废收运
export function delWasteCollect(wasteCollectId) {
    return request({
        url: '/business/wasteCollect/' + wasteCollectId,
        method: 'delete'
    })
}

// 导出危废收运
export function exportWasteCollect(query) {
    return request({
        url: '/business/wasteCollect/export',
        method: 'get',
        params: query
    })
}